﻿@{
    ViewBag.Title = "Map";
    var seatDataUrl = Url.Action("SeatData", "Seat", null, Request.Url.Scheme, Request.Url.DnsSafeHost);
    var submitUrl = Url.Action("NewBooking", "Seat", null, Request.Url.Scheme, Request.Url.DnsSafeHost);
    var rootUrl = Request.Url.Scheme +"://"+ Request.Url.Authority;
    Layout = null;
}
<form id='form1' runat='server' style='height: 100%'>
    <div id='silverlightControlHost' style="height: 1000px;">
        <object data='data:application/x-silverlight-2,' type='application/x-silverlight-2'
            width='800px' height="900">
            <param name='source' value='@{@rootUrl }/SeatBookingClientBin/ArendalMap.xap' />
            <param name='background' value='white' />
            <param name='minRuntimeVersion' value='5.0.61118.0' />
            <param name='autoUpgrade' value='true' />
            <param name='InitParams' value='seatdataurl=@seatDataUrl, submiturl=@submitUrl,showdemo=true'/>
            <a href='http://go.microsoft.com/fwlink/?LinkID=149156&v=5.0.61118.0' style='text-decoration: none'>
                <img src='http://go.microsoft.com/fwlink/?LinkId=161376' alt='Get Microsoft Silverlight'
                    style='border-style: none' />
            </a>
        </object>
        <iframe id='_sl_historyFrame' style='visibility: hidden; height: 0px; width: 0px;
            border: 0px'></iframe>
    </div>
</form>
